<?php



class RingtoneStatisticNewMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.RingtoneStatisticNewMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('ringtone_statistic_new');
		$tMap->setPhpName('RingtoneStatisticNew');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('RINGTONE_ID', 'RingtoneId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('DOWNLOAD_DAY_NO', 'DownloadDayNo', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DOWNLOAD_WEEK_NO', 'DownloadWeekNo', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DOWNLOAD_MONTH_NO', 'DownloadMonthNo', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DOWNLOAD_YEAR_NO', 'DownloadYearNo', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DOWNLOAD_TODAY', 'DownloadToday', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('DOWNLOAD_THIS_WEEK', 'DownloadThisWeek', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('DOWNLOAD_THIS_MONTH', 'DownloadThisMonth', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('DOWNLOAD_TOTAL', 'DownloadTotal', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('DOWNLOAD_YESTERDAY', 'DownloadYesterday', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DOWNLOAD_LAST_WEEK', 'DownloadLastWeek', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DOWNLOAD_LAST_MONTH', 'DownloadLastMonth', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('COMMENT_DAY_NO', 'CommentDayNo', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('COMMENT_WEEK_NO', 'CommentWeekNo', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('COMMENT_MONTH_NO', 'CommentMonthNo', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('COMMENT_YEAR_NO', 'CommentYearNo', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('COMMENT_TODAY', 'CommentToday', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('COMMENT_THIS_WEEK', 'CommentThisWeek', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('COMMENT_THIS_MONTH', 'CommentThisMonth', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('COMMENT_TOTAL', 'CommentTotal', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('VOTE_DAY_NO', 'VoteDayNo', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('VOTE_WEEK_NO', 'VoteWeekNo', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('VOTE_MONTH_NO', 'VoteMonthNo', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('VOTE_YEAR_NO', 'VoteYearNo', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('VOTE_TODAY', 'VoteToday', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('VOTE_THIS_WEEK', 'VoteThisWeek', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('VOTE_THIS_MONTH', 'VoteThisMonth', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('VOTE_TOTAL', 'VoteTotal', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('PLAY_DAY_NO', 'PlayDayNo', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('PLAY_WEEK_NO', 'PlayWeekNo', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('PLAY_MONTH_NO', 'PlayMonthNo', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('PLAY_YEAR_NO', 'PlayYearNo', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('PLAY_TODAY', 'PlayToday', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('PLAY_THIS_WEEK', 'PlayThisWeek', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('PLAY_THIS_MONTH', 'PlayThisMonth', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('PLAY_TOTAL', 'PlayTotal', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('RECENT_DOWNLOAD_USERNAME', 'RecentDownloadUsername', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('RECENT_DOWNLOAD_USER_ID', 'RecentDownloadUserId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('RECENT_DOWNLOAD_DATETIME', 'RecentDownloadDatetime', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('CATEGORY_ID', 'CategoryId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('CATEGORY_NAME', 'CategoryName', 'string', CreoleTypes::VARCHAR, false, 100);

		$tMap->addColumn('CREATOR_ID', 'CreatorId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('ARTIST_ID', 'ArtistId', 'int', CreoleTypes::INTEGER, false, null);

	} 
} 